// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//跨域
import VueAxios from 'vue-axios'
import axios from 'axios'
//全局接口
import ReqHead from "./components/overall/ReqHead";
import GlobalMethod from "./components/overall/GlobalMethod"
//饿了么组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//富文本
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor, {
  placeholder: '请输入内容',
});

Vue.config.productionTip = false
Vue.prototype.Global = ReqHead
Vue.use(VueAxios,axios)
Vue.use(ElementUI)
Vue.use(GlobalMethod)

axios.defaults.withCredentials=true

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
